- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 800
 
Extract config_file method from action_class to enable external access #647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| 
           @damacus 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.  | 
    
Co-authored-by: damacus <[email protected]>
        
          
                resources/site.rb
              
                Outdated
          
        
      | def config_file | ||
| ::File.join(conf_dir, "#{name}.conf") | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract this to the helpers.rb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extracted the config_file logic to a new nginx_site_config_file helper method in helpers.rb. The resource method now delegates to the helper while maintaining external accessibility. (13f62b2)
| 
           @copilot rebase  | 
    
Co-authored-by: damacus <[email protected]>
          Slowest examplesTop 10 slowest examples (0.95 seconds, 27.92% of total time)
  | 
    
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.